/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author XuanHung
 */
public class clsNguyenTo {
    private int m_iNguyenTo;
    public void setNguyenTo(int _iNguyenTo){
        m_iNguyenTo = _iNguyenTo;
    }
    public int getNguyenTo(){
        return m_iNguyenTo;
    }
    public static boolean ktnt(int n){
        for(int i = 2;  i <= Math.sqrt(n); i++){
            if(n%i == 0){
                return false;
            }                
        }
        return true;
    }
    
    public void SoNguyenTo(){
        if(ktnt(this.m_iNguyenTo))
            System.out.print(this.m_iNguyenTo + ": La so Nguyen To");
        else
            System.out.print(this.m_iNguyenTo + ": Khong la so Nguyen To");
    }
}
